package org.jeecg.modules.oms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
import org.jeecg.modules.oms.entity.ProductSalesOrderDetail;

/**
 * 成品销售订单明细服务接口
 */
public interface IProductSalesOrderDetailService extends IService<ProductSalesOrderDetail> {

    /**
     * 根据订单ID查询订单明细
     *
     * @param orderId 订单ID
     * @return 订单明细列表
     */
    List<ProductSalesOrderDetail> getDetailListByOrderId(String orderId);
    
    /**
     * 根据订单ID删除订单明细
     *
     * @param orderId 订单ID
     * @return 是否成功
     */
    boolean deleteDetailByOrderId(String orderId);
    
    /**
     * 批量保存订单明细
     *
     * @param orderId 订单ID
     * @param detailList 订单明细列表
     * @return 是否成功
     */
    boolean saveOrderDetailBatch(String orderId, List<ProductSalesOrderDetail> detailList);

    List<ProductSalesOrderDetail> getDetailListByOrderIds(String orderIds);
}